<?php
FLEA::loadClass('FLEA_Db_TableDataGateway');

class Model_DeclareCompany extends FLEA_Db_TableDataGateway
{
	var $tableName = 'declarecompany';
	var $primaryKey = 'declare_id';
	
	var $hasMany = array(
        'tableClass' => 'Model_DispatchingCompany',     
        'foreignKey' => 'user_id',
		'mappingName' => 'dispatching',
    );
    
//    var $hasOne = array(
//    	'tableClass' => 'Model_DeclarePerson',
//    	'mappingName' => 'declareperson',
//    	'foreignKey' => 'id',
//    	'assocForeignKey'=>'legalPersonId',
//    );
}
?>